package com.hz.tgb.data.mongo;

import com.alibaba.fastjson.serializer.ValueFilter;
import org.bson.types.Decimal128;


public class JSONValueFilter implements ValueFilter {

    @Override
    public Object process(Object object, String name, Object value) {
        if(value instanceof org.bson.types.Decimal128) {
            return  ((Decimal128) value).bigDecimalValue();
        }
        return value;
    }
}
